package cn.aylog.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("ex")
public class OccurExceptionController {

    @RequestMapping("math")
    public void mathException() {
        int a = 1 / 0;
    }

    @RequestMapping("over")
    public void overException() {
        int[] arr = new int[1];
        arr[1] = 1;
    }
}
